</div>
</div>
</div>
<!-- <script src="https://cdn.bootcss.com/element-ui/2.0.4/index.js"></script>
<link href="https://cdn.bootcss.com/element-ui/2.0.4/theme-chalk/index.css" rel="stylesheet"> -->
<script>
    // var socket = new WebSocket('ws://192.168.239.128:9501?token=<?php echo $this->params['token'];?>');
    // socket.onopen=function(){
    // 	console.log('链接成功');
    // }
    // socket.onmessage=function(evt){
    // 	vm.$notify({
    // 		title: '提示',
    // 		message: evt.data,
    // 	})
    // }
</script>
<script type="text/javascript">
    $(document).ready(function(){
        $("#broad-div").css("height",$(window).height()-80);
        $("#mrightChild").css("height",$(window).height());
        $(window).resize(function() {
            var height=$(window).height();
            $("#broad-div").css("height",height-80);
        })
    })
    function sideBtn(showType){
        if(showType=="big"){
            $("#tinyBroad").hide();
            $("#broad-div").show();
            $(".sidebar").css("width","186px");
            $("#mrightChild").css("margin-left","186px")
        }else{
            $("#tinyBroad").show();
            $("#broad-div").hide();
            $(".sidebar").css("width","44px");
            $("#mrightChild").css("margin-left","44px")
        }
    }
</script>
<script type="text/javascript">


    <?php if (isset($this->params['baoxiao'])):?>
    if (!Notify.needsPermission) {
        doNotification();
    } else if (Notify.isSupported()) {
        Notify.requestPermission(onPermissionGranted, onPermissionDenied);
    }

    function onPermissionGranted() {
        console.log('Permission has been granted by the user');
        doNotification();
    }

    function onPermissionDenied() {
        console.warn('Permission has been denied by the user');
    }

    function doNotification(){
        var myNotification = new Notify('', {
            body: '有未处理的报销，前往查看',
            notifyShow: onNotifyShow
        });

        function onNotifyShow() {
            console.log('notification was shown!');
        }

        myNotification.show();
    }
    <?php endif;?>
    $(function () {
        NProgress.start();
        $("#nprogress .bar").css('background-color', 'red');
        setTimeout(function () {
            NProgress.done()
        }, 200);
    })
</script>
</body>
</html>